<template>
  <div>
    <Header/>
    <div class="head-a"></div>
    <Head/>
    <div class="main">
      <Main v-for="(v,i) in arr" :key="i" :texta="v.txt" :textb="v.txta"/>
    </div>
    <div class="mine">
      <h4>我的权益</h4>
      <img src="images/2_07.jpg" alt="">
      <div class="mine-a">
        <My v-for="(v,i) in datalist" :key="i" :test="v.a" :testa="v.b" :testb="v.c" class="mi"/>
      </div>
      
    </div>
    <div class="doing">
      <div class="doing-a">
        <h4>全国活动</h4>
        <span>更多</span>
      </div>
      <div class="doing-b">
        <div class="doing-l">
          <img src="images/3_03.jpg" alt="">
        </div>
        <div class="doing-r">
          <img src="images/3_05.jpg" alt="">
          <img src="images/3_08.jpg" alt="">
        </div>
      </div>
    </div>
    <div class="change">
      <h4>融e购精选</h4>
      <ul>
        <li><img src="images/3_11.jpg" alt=""></li>
        <li><img src="images/3_11.jpg" alt=""></li>
        <li><img src="images/3_11.jpg" alt=""></li>
      </ul>
    </div>
    <div class="rural">
      <h4>乡村振兴专区</h4>
      <img src="images/3_14.jpg" alt="">
      <ul>
        <li><img src="images/3_16.jpg" alt=""></li>
        <li><img src="images/3_18.jpg" alt=""></li>
        <li><img src="images/3_20.jpg" alt=""></li>
        <li><img src="images/3_21.jpg" alt=""></li>
      </ul>
    </div>
     <Btn/>
  </div>
</template>

<script>
import Header from '@/components/home-page/header.vue'
import Head from "@/components/chosen/head.vue"
import Main from "@/components/home-page/main.vue"
import My from "@/components/chosen/my.vue"
import Btn from '@/components/bottomBar.vue'
export default {
  data(){
    return {
      arr:[
        {txt:"iconfont icon-shoujichongzhi",txta:"手机充值"},
        {txt:"iconfont icon-youqiachongzhi",txta:"油卡充值"},
        {txt:"iconfont icon-shenghuojiaofei",txta:"水电燃气"},
        {txt:"iconfont icon-zichan",txta:"保险服务"},
        {txt:"iconfont icon-dianyingpiao",txta:"电影票"},
        {txt:"iconfont icon-chafangjia",txta:"查房价"},
        {txt:"iconfont icon-bendifuwu1",txta:"本地服务"},
        {txt:"iconfont icon-jiaotongchuhang_gaodedache",txta:"高德打车"},
      ],
      datalist:[
        {a:"iconfont icon-xiaoxiangtubiao",b:"小象俱乐部",c:"签到免费抽奖"},
        {a:"iconfont icon-xiaoxiangtubiao",b:"小象俱乐部",c:"签到免费抽奖"},
        {a:"iconfont icon-xiaoxiangtubiao",b:"小象俱乐部",c:"签到免费抽奖"},
        {a:"iconfont icon-xiaoxiangtubiao",b:"小象俱乐部",c:"签到免费抽奖"},
        {a:"iconfont icon-xiaoxiangtubiao",b:"小象俱乐部",c:"签到免费抽奖"},
        {a:"iconfont icon-xiaoxiangtubiao",b:"小象俱乐部",c:"签到免费抽奖"}
      ]
    }
  },
  components:{
    Header,
    Head,
    Main,
    My,
    Btn
  }
}
</script>

<style scoped>
  .head-a{
    height: 1.78rem;
    background-color: #f7c4c1;
  }
  .main{
    width: 2.9rem;
    margin: auto;
    margin-top: 0.25rem;
    height: 1.2rem;
    display: flex;
    flex-wrap: wrap;
  }
  .mine{
    width: 2.9rem;
    margin: auto;
  }
  .mine h4{
    height: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.14rem;
  }
  .mine img{
    width: 2.9rem;
    height: 0.54rem;
  }
  .mine-a{
    width: 2.9rem;
    height: 2.15rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .mi{
    width: 1.4rem;
  }
  .doing{
    width: 2.9rem;
    margin: auto;
  }
  .doing-a{
    height: 0.55rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .doing-a h4{
    font-size: 0.14rem;
  }
  .doing-a span{
    display: block;
    font-size: 0.12rem;
  }
  .doing-b{
    width: 2.9rem;
    height: 1.23rem;
    display: flex;
    justify-content: space-between;
  }
  .doing-l{
    width: 1.4rem;
  }
  .doing-l img{
    width: 1.4rem;
    height: 1.23rem;
  }
  .doing-r{
    width: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
  }
  .doing-r img{
    width: 1.3rem;
    height: 0.6rem;
  }
  .change{
    width: 2.9rem;
    margin: auto;
  }
  .change h4{
    font-size: 0.14rem;
    line-height: 0.7rem;
  }
  .change ul{
    display: flex;
    justify-content: space-evenly;
  }
  .rural{
    width: 2.9rem;
    margin: auto;
  }
  .rural h4{
    font-size: 0.14rem;
    line-height: 0.5rem;
  }
  .rural img{
    width: 2.9rem;
    height: 0.66rem;
  }
  .rural ul{
    width: 2.9rem;
    height: 2.3rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: 0.12rem;
  }
  .rural li{
    width: 1.4rem;
    height: 1.16rem;
  }
  .rural li img{
    width: 1.4rem;
    height: 1.16rem;
  }
</style>